<?php
/**
 * Created by sublime 3.
 * Auth: Inhere
 * Date: 15-1-19
 * Time: 10:35
 * Uesd: 主要功能是 hi
 */


use ulue\core\ioc\ContainerManager;

abstract class Ioc extends ContainerManager
{
    /**
     * current container instance
     * @var Container
     */
    static public $box = null;

    static public function getSession()
    {
        return self::get('session');
    }

    static public function getApp()
    {
        return self::get('application');
    }

    static public function app()
    {
        return self::get('application');
    }

    static public function getLoader()
    {
        return self::get('loader');
    }

    static public function getLogger()
    {
        return self::get('logger');
    }

    static public function getRequest()
    {
        return self::get('request');
    }

    static public function getResponse()
    {
        return self::get('response');
    }

    static public function getConfig()
    {
        return self::get('config');
    }
}
/*=====╬╬╬╬╬╬╬╬╬===╬╬╬╬╬╬╬╬╬======╬╬╬╬╬╬╬╬╬=====╬╬╬╬╬╬╬╬╬====╋╋╋
                  .---._             ___
            --===^      ~-......---.==\\\
               /' _/-/              \  )))
              `-~~   \  ,    ___\   )  ((
                     / /---~~  \(`\(    ))
                   </'|;   .---"  \>
             |  |    "       |
=====╬╬╬╬╬╬╬╬╬=====╬╬╬╬╬╬╬╬╬======╬╬╬╬╬╬╬╬╬=====╬╬╬╬╬╬╬╬╬====╋╋╋*/